const {db} = require("../../config/dbconfig");
exports.getAllOpenSources = async (req, res, next) => {
    const sql = `SELECT *
                 FROM open_source order by create_time desc`;
    db.query(sql, (err, result) => {
        if (err) {
            return res.status(500).json({
                message: err.message
            })
        }
        for (let i = 0; i < result.length; i++) {
            result[i].technology_Stack = result[i].technology_Stack.split("+");
        }

        res.cc(result, 0)
    })

}